import i18n from '../../i18n/i18n'

export const tableOption = {
  border: true,
  index: false,
  selection: true,
  indexLabel: i18n.t('brand.serialNumber'),
  stripe: true,
  menuAlign: 'center',
  menuWidth: 250,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('users.name'),
    prop: 'nickName',
    fixed: 'left',
    search: true
  },
  {
    label: i18n.t('publics.profilePicture'),
    prop: 'pic',
    fixed: 'left',
    slot: true
  },
  //  {
  // label: i18n.t('users.userName'),
  //   prop: 'realName',
  //   search: true
  // },
  {
    label: i18n.t('publics.mobilePhone'),
    prop: 'userMobile',
    search: true
  },
  {
    label: i18n.t('user.membershipLevel'),
    prop: 'levelName'
  },
  {
    label: i18n.t('user.memberType'),
    prop: 'levelType',
    search: true,
    type: 'select',
    minWidth: 100,
    slot: true,
    dicData: [
      {
        label: i18n.t('user.ordinaryMember'),
        value: 0
      }, {
        label: i18n.t('user.paidMembership'),
        value: 1
      }
    ]
  },
  {
    label: i18n.t('user.growth'),
    prop: 'growth'
  },
  {
    label: i18n.t('user.userScore'),
    prop: 'score'
  },
  {
    label: i18n.t('user.cumulativeScore'),
    // sortable: true,
    prop: 'sumScore'
  },
  {
    label: i18n.t('publics.status'),
    prop: 'status',
    search: true,
    type: 'select',
    slot: true,
    dicData: [
      {
        label: i18n.t('publics.disable'),
        value: 0
      }, {
        label: i18n.t('publics.normal'),
        value: 1
      }
    ]
  },
  {
    label: i18n.t('user.registrationTime'),
    prop: 'userRegtime',
    hide: true
  },
  {
    label: i18n.t('user.lastConsumptionTime'),
    prop: 'reConsTime',
    hide: true
  },
  {
    label: i18n.t('user.consumptionAmount'),
    // sortable: true,
    prop: 'consAmount'
  },
  {
    label: i18n.t('user.actuallypaid'),
    // sortable: true,
    prop: 'actualAmount'
  },
  {
    label: i18n.t('user.consumptionTimes'),
    // sortable: true,
    prop: 'consTimes'
  },
  {
    label: i18n.t('user.averageDiscount'),
    // sortable: true,
    prop: 'averDiscount'
  },
  {
    label: i18n.t('user.rechargeAmount'),
    // sortable: true,
    prop: 'rechargeAmount'
  },
  {
    label: i18n.t('user.rechargeTimes'),
    // sortable: true,
    prop: 'rechargeTimes'
  },
  {
    label: i18n.t('home.refundAmount'),
    // sortable: true,
    prop: 'afterSaleAmount'
  },
  {
    label: i18n.t('user.refundTimes'),
    // sortable: true,
    prop: 'afterSaleTimes'
  },
  // {
  //   label: '当前积分',
  //   prop: 'currentScore'
  // },
  {
    label: i18n.t('user.currentBalance'),
    // sortable: true,
    prop: 'currentBalance'
  },
  {
    label: i18n.t('user.cumulativeBalances'),
    sortable: true,
    prop: 'sumBalance'
  }
  // {
  //   label: i18n.t('user.customerLabel'),
  //   prop: 'dynamicTags',
  //   hide: true,
  //   searchslot: true
  // }
  ]
}
